Computer Configuration > Administrative Templates > Firefox > Clear data when browser is closed
Both
HKLM\Software\Policies\Mozilla\Firefox\SanitizeOnShutdown
If the policy is enabled, sessions are cleared when the browser is closed. If this policy is disabled or not configured, sessions are not cleared when the browser is closed.